{% extends "temple.html" %}
{% block user %}
class="active"
{% endblock %}
{% block connet %}
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
            <h1 class="page-header">修改用户信息</h1>
                <form action="" method="post" class="form-horizontal">
                {% csrf_token %}
                    <div class="form-group {% if error %}has-error{% endif %}">
                        <label for="a1" class="col-sm-2 col-sm-offset-2 control-label">用户名:</label>
                        <div class="col-sm-4">
                            <input type="text" id="a1" class="form-control" value="{{ obj.user }}" name="user">
                            <span style="color: red">{{ error }}</span>
                        </div>

                    </div>
                    <div class="form-group">
                        <label for="a2" class="col-sm-2 col-sm-offset-2 control-label">密码:</label>
                        <div class="col-sm-4">
                            <input type="password" id="a2" class="form-control" value="{{ obj.pwd}}" name="pwd">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="a3" class="col-sm-2 col-sm-offset-2 control-label">姓名:</label>
                        <div class="col-sm-4">
                            <input type="text" id="a3" class="form-control" value="{{ obj.u_name }}" name="u_name">
                        </div>
                    </div>
                    <div class="form-group {% if perror %}has-error{% endif %}"">
                        <label for="a5" class="col-sm-2 col-sm-offset-2 control-label">手机号:</label>
                        <div class="col-sm-4">
                            <input type="text" id="a5" class="form-control" value="{{ obj.phone}}" name="phone">
                            <span style="color: red">{{ perror }}</span>
                        </div>
                    </div>




                    <button style="margin-left: 405px" class=" btn btn-primary">提交</button>

                </form>

        </div>
{% endblock %}











